#!/usr/bin/env python3
"""
TradingAgents MCP服务器启动脚本

@description 简化的MCP服务器启动入口
@usage python start_mcp_server.py
"""

import asyncio
import sys
import os

# 添加项目路径
sys.path.insert(0, os.path.dirname(__file__))

from tradingagents_mcp.tradingagents_mcp import main

if __name__ == "__main__":
    print("🚀 启动TradingAgents MCP服务器...")
    try:
        asyncio.run(main())
    except KeyboardInterrupt:
        print("\n👋 MCP服务器已停止")
    except Exception as e:
        print(f"❌ 服务器启动失败: {e}")
        sys.exit(1) 